package App.Model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by xw on 2019/4/28.
 */

@Component
@PropertySource("classpath:bootstrap.yml")
@ConfigurationProperties(prefix = "project.uploadpath")
public class ProjectConfig {

    private String uploadfilepath_windows="E:/uploads/";
    private String uploadfilepath_linux = "/data/approot/uploads/";

    public String getUploadfilepath_windows() {
        return uploadfilepath_windows;
    }

    public void setUploadfilepath_windows(String uploadfilepath_windows) {
        this.uploadfilepath_windows = uploadfilepath_windows;
    }

    public String getUploadfilepath_linux() {
        return uploadfilepath_linux;
    }

    public void setUploadfilepath_linux(String uploadfilepath_linux) {
        this.uploadfilepath_linux = uploadfilepath_linux;
    }

}
